<template>
  <div>
    <!-- <div>用户token{{ token }}</div> -->
    <!-- <div>设置name{{ $store.state.setting.name }}</div> -->
    <div>用户token{{ $store.getters.token }}</div>
    <div>设置name{{ $store.getters.name }}</div>
  </div>
</template>

<script>
// import { mapState } from "vuex";
import { mapGetters } from "vuex";
export default {
  // computed: {
  //   ...mapState("user", ["token"]),
  //   ...mapState(["name"]),
  // },
  computed: {
    ...mapGetters(["token", "name"]),
  },
};
</script>

<style>
</style>